package com.xiaoshuidi.cloud.framework.fadada.core.enums;

import com.xiaoshuidi.cloud.framework.common.exception.ErrorCode;

/**
 * System 错误码枚举类
 *
 * system 系统，使用 1-002-000-000 段
 */
public interface FadadaReturnCodeConstants {

    ErrorCode UNKNOWN_ERROR = new ErrorCode(-1, "未知异常信息");
    ErrorCode FAIL = new ErrorCode(0, "失败");
    ErrorCode SUCCESS = new ErrorCode(1, "成功");
    ErrorCode DUPLICATE_REQUEST = new ErrorCode(2, "重复请求");
    ErrorCode OPERATION_SUCCESS = new ErrorCode(1000, "操作成功");
    //公共参数指app_id，timestamp，v，msg_digest为空或者不符合规则
    ErrorCode ILLEGAL_PUBLIC_PARAMETER = new ErrorCode(1001, "公共参数非法");
    ErrorCode APP_ID_NOT_EXIST_OR_NOT_STARTED = new ErrorCode(1002, "app_id不存在或未启动");
    ErrorCode MSG_DIGEST_INVALID = new ErrorCode(1003, "msg_digest无效");
    ErrorCode ILLEGAL_REQUEST_PARAMETER = new ErrorCode(1004, "请求参数非法");
    ErrorCode UNBOUND_IP_WHITELIST = new ErrorCode(1005, "未绑定IP白名单");
    ErrorCode FREQUENT_REQUESTS = new ErrorCode(1006, "请求频繁，请稍后再试");

}
